package com.xjust.service.impl;

import com.xjust.Mapper.CheckResultMapper;
import com.xjust.service.CheckResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;


@Service
public class CheckResultServiceImpl implements CheckResultService {

    @Autowired
    private CheckResultMapper checkResultMapper;

    @Override
    public List<Map<String, Object>> getCheckResult(String tech_code, String tech_name, String tech_format, BigDecimal tech_price, String check_state, String price_type,Integer check_employee_id,String tech_type,LocalDateTime creation_time) {
        return checkResultMapper.getCheckResultByCondition(tech_code,tech_name,tech_format,tech_price,check_state,price_type,check_employee_id,tech_type,creation_time);
    }

    @Override
    public List<Map<String, Object>> getCheckRequest(LocalDateTime creation_time, Integer check_employee_id, String check_position, String check_info, String check_remark, String check_result, LocalDateTime check_time) {
        return checkResultMapper.getCheckRequestByCondition(creation_time,check_employee_id,check_position,check_info,check_remark,check_result,check_time);
    }


}
